<?php
namespace app\common\model;

class FruitSell extends \think\Model {
	protected $table = 'farm_fruit_sell';

	public function getStatusAttr($value) {
		$status = [
			1 => '出售中',
			9 => '已出售'
		];

		return $status[$value];
	}

	public function getTypeAttr($value) {
		$status = [
			1 => '额度果子',
			2 => '收益果子'
		];

		return $status[$value];
	}
}
?>